<?php
    /**
     * Created by PhpStorm.
     * User: huangzhongwei
     * Date: 2018/11/4
     * Time: 11:25
     */

    namespace app\api\controller;

    use app\common\model\Weight as WeightModel;

    class Weight extends BaseController
    {


        /**
         * 获取所有重量
         * @return array|\PDOStatement|string|\think\Collection
         * @throws \think\db\exception\DataNotFoundException
         * @throws \think\db\exception\ModelNotFoundException
         * @throws \think\exception\DbException
         */
        public function getWeight()
        {

            $weight = WeightModel::select();

            return $weight;

        }


    }